// 绩效榜相关接口
import { GET as get, POST as post } from '../axios.config.js'

const base = window.config.ip
const baseUrl = `${base}/topnet-assess`
const baseUrl1 = `${base}/rcdg-record`

// 获取个人绩效列表
export const getPersonMerits = p => post(`${baseUrl}/sa-performance/listPersonalPerformance`, p)
// 绩效榜--组织绩效(科员)
export const getOragnMerits = p => post(`${baseUrl1}/sa-performance/listOrganPerformance`, p)
// 绩效榜--季度列表
export const getQuarter = p => post(`${baseUrl1}/sa-performance/listQuarter`, p)

// 绩效榜--公示榜
export const selectListHonorRollDetailResponse = p =>
  post(`${baseUrl}/sa-honor-roll/selectListHonorRollDetailResponse`, p)
// 绩效榜--公示榜首頁
export const selectListHonorRollPC = p => get(`${baseUrl}/sa-honor-roll/selectListHonorRollPC`, p)
// 绩效榜--公示榜下拉
export const selectAllChoose = p => get(`${baseUrl}/sa-honor-roll/selectAllChoose`, p)
// 县干部获取公示榜数据
export const dryGetHonorRollData = p => post(`${baseUrl}/sa-honor-roll/dryGetHonorRollDetailResponse`, p)
// 组织部获取公示榜数据
export const orgGetHonorRollData = p => post(`${baseUrl}/sa-honor-roll/orgGetHonorRollDetailResponse`, p)
// 获取公示榜机构列表
export const getHonorOrgList = p => post(`${baseUrl}/sa-honor-roll/getHonorOrgList`, p)

// 首页获取公示榜展示信息
export const getHonorRollTip = p => post(`${baseUrl}/sa-honor-roll/getHonorRollTip`, p)
